package com.t.bricks.bussiness.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.t.bricks.bussiness.model.HtmlFormInfo;
import com.t.bricks.bussiness.service.system.HtmlDesignService;
import com.t.bricks.model.MsgEmity;

@RestController
@RequestMapping("/app/design/")
public class HtmlDesignControl {

	@Autowired
	private HtmlDesignService htmlDesignService;

	/**
	 * 保存页面
	 * @param htmlFormInfos
	 * @return
	 */
	@RequestMapping(method={RequestMethod.POST}, value="/save")
	public MsgEmity save(@RequestBody HtmlFormInfo htmlFormInfos) {
		return htmlDesignService.save(htmlFormInfos);
	}
	
}
